getActivity

@Nullable
open fun getActivity(@NonNull context: @NonNull Context, requestCode: Int, @NonNull intent: @NonNull Intent, flags: Int, isMutable: Boolean): @Nullable PendingIntent(source)
@Nullable
open fun getActivity(@NonNull context: @NonNull Context, requestCode: Int, @NonNull intent: @NonNull Intent, flags: Int, @Nullable options: @Nullable Bundle, isMutable: Boolean): @Nullable PendingIntent(source)

Retrieves a PendingIntent with mandatory mutability flag set on supported platform versions. The caller provides the flag as combination of all the other values except mutability flag. This method combines mutability flag when necessary.

Return

Returns an existing or new PendingIntent matching the given parameters. May return null only if FLAG_NO_CREATE has been supplied.

See also